@include('admin.common.header')
<!--tab nav start-->
<section class="panel">
    <header class="panel-heading tab-bg-dark-navy-blue ">
        <ul class="nav nav-tabs">
            <li @if ($_active['_action'] == 'list')  class="active" @endif>
                <a href="/admin/manufactor">供应商列表</a>
            </li>
            <li @if ($_active['_action'] == 'add')  class="active" @endif>
                <a href="/admin/manufactor/add">添加供应商</a>
            </li>
        </ul>
    </header>
    <div class="panel-body">
        <div class="tab-content">
            <div class="row">
                <div class="col-lg-12">
                        <section class="panel">
                        @if($manufactors['pageData']['count'] == 0)
                            <div class="no-data">暂无要查询的内容</div>
                        @else
                        <table class="table table-striped table-advance table-hover">
                            <thead>
                            <tr>
                                <th>供应商名称</th>
                                <th>供应商地址</th>
                                <th>联系方式</th>
                                <th>联系人</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($manufactors['list'] as $m)
                            <tr>
                                <td>{{ $m->name }}</td>
                                <td>{{ $m->address }}</td>
                                <td>{{ $m->mobile }}</td>
                                <td>{{ $m->contact }}</td>
                                <td>
                                    <a href="/admin/manufactor/info/{{ $m->id }}" target="_blank" class="btn btn-primary btn-xs update" gid="{{ $m->id }}"><i class="icon-pencil"></i></a>
                                    <button href="/admin/manufactor/delete/{{ $m->id }}" class="delete btn btn-danger btn-xs"><i class="icon-trash "></i></button>
                                </td>
                            </tr>
                            @endforeach
                            </tbody>
                        </table>
                        @endif
                    </section>
                </div>
            </div>

        </div>
    </div>

</section>
<!--tab nav start-->

<script>

    require(['app/manufactor' , 'common/common'] , function (manufactor , common) {
        manufactor.deleteNotice();
        common.search();
    });

</script>

@include('admin.common.footer')